import xmlrpclib
from SimpleXMLRPCServer import SimpleXMLRPCServer

from Table import *


table = Table()
table.randomize()
print table

players = []
def connect():
    players.append(Player())
    return len(players)

server = SimpleXMLRPCServer(("localhost", 8001))
print "Listening on port 8001..."
server.register_function(connect)
server.serve_forever()
